// 配置编译环境和线上环境之间的切换

let baseUrl = '';
let uploadImage = "";
let imagePath = "";
let socketURL = "";
let iconfontVersion = ['567566_pwc3oottzol', '1066523_6bvkeuqao36'];
let iconfontUrl = `//at.alicdn.com/t/font_$key.css`;
let codeUrl = `${baseUrl}/code`
const env = process.env

if (env.NODE_ENV == 'development') { // 开发环境地址
  baseUrl = "http://192.168.98.24:9900";
  uploadImage = "https://cloud.trtc.live/";
  imagePath = "https://hagavp.jacars.com/huaian";
  // socketURL = "ws://192.168.4.44:9900/api-rtc/websocket/";
  socketURL = "ws://192.168.98.24:9900/api-ws/websocket?id=";
} else if (env.NODE_ENV == 'production') { //生产环境地址
  baseUrl = "https://haga.trtc.live";
  uploadImage = "https://haga.trtc.live/";
  imagePath = "https://haga.trtc.live/huaian";
  socketURL = "wss://haga.trtc.live/api-ws/websocket?id=";
} else if (env.NODE_ENV == 'test') { //测试环境地址
  baseUrl = "https://cloud.trtc.live";
  uploadImage = "https://cloud.trtc.live/upload/";
  imagePath = "https://cloud.trtc.live/huaian";
  socketURL = "wss://cloud.trtc.live/api-ws/websocket?id=";
}
export {
  baseUrl,
  uploadImage,
  imagePath,
  socketURL,
  iconfontUrl,
  iconfontVersion,
  codeUrl,
  env
}


/*

baseUrl = "http://192.168.98.24:9900";
uploadImage = "http://192.168.98.24:80/upload/";
imagePath = "http://192.168.98.24:80/huaian";
socketURL = "ws://192.168.98.24:9900/api-rtc/websocket/";



*/
